package com.example.music;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

import androidx.annotation.Nullable;

public class MyService extends Service {



    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return new MyBinnder();
    }

    class MyBinnder extends Binder{
        public void play(){
            Toast.makeText(MyService.this, "play", Toast.LENGTH_SHORT).show();

        }
    }




}
